package com.ma.service.employees;

import com.ma.dao.employees.EmployeesMapper;
import com.ma.pojo.Employees;
import org.springframework.stereotype.Service;

public class EmployeesServiceImpl implements EmployeesService{
    private EmployeesMapper employeesMapper;

    public void setEmployeesMapper(EmployeesMapper employeesMapper) {
        this.employeesMapper = employeesMapper;
    }

    public Employees getLoginUser(String employeesName) {
        return employeesMapper.getLoginUser(employeesName);
    }

    @Override
    public int updateEmployees(Employees employees) {
        return employeesMapper.updateEmployees(employees);
    }
}
